<template>
  <div>
    <h1>App 组件</h1>
    <MyCmp>
      <template v-slot:default="scope">
        <span>{{ scope }}</span>
      </template>
    </MyCmp>
    <MyList>
      <template #default="{user}">
        <th>{{user.id}}</th>
        <th>{{user.name}}</th>
        <th>{{user.age}}</th>
      </template>
    </MyList>
  </div>
</template>

<script>

import MyCmp from './component.vue'
import MyList from './table.vue'
export default {
  name: 'MyApp',
  components: {
    MyCmp,
    MyList
  }
}
</script>

<style>

</style>